home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Music⁄Sounds / BeepSay 1.0.1 / Preferences.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-19  |  1.8 KB  |  49 lines  |  [TEXT/MPS ]

  1. /******************************************************************************
  2. **
  3. **  Folder Name:    BS
  4. **     File Name:    Utilities.h
  5. **
  6. **   Copyright:    © 1993 by Siren Enterprises, all rights reserved.
  7. **
  8. **   Description:    Support routines for BeepSay
  9. **
  10. *******************************************************************************
  11. **                       A U T H O R   I D E N T I T Y
  12. *******************************************************************************
  13. **
  14. **    Initials    Name
  15. **    --------    -----------------------------------------------
  16. **    kw            Ken Wieschhoff
  17. **
  18. *******************************************************************************
  19. **                      R E V I S I O N   H I S T O R Y
  20. *******************************************************************************
  21. **
  22. **      Date        Time    Author    Description
  23. **    --------    -----    ------    ---------------------------------------------
  24. **    05/17/93    21:03    kw        Original version
  25. **
  26. ******************************************************************************/
  27. #ifndef __Preferences__
  28. #define __Preferences__
  29.  
  30. #include "Resident.h"
  31.  
  32. //•• Prototypes
  33. pascal OSErr xFSpCreateResFile(const FSSpec *spec,OSType creator,OSType fileType,
  34.     ScriptCode scriptTag);
  35. pascal OSErr xFSpOpenDF(const FSSpec *spec,char permission,short *refNum);
  36. pascal OSErr xFSpCreate(const FSSpec  *spec,OSType creator,OSType fileType,
  37.     ScriptCode scriptTag);
  38. pascal OSErr xFSpDelete(const FSSpec *spec);
  39.  
  40. pascal OSErr _ReadPreferences(PreferencesHdl *PreferencesHandle, Str31 filename);
  41.  
  42. pascal OSErr WriteToPrefs(PreferencesHdl prefHdl, Str31 filename);
  43.  
  44. OSErr findPreferencesFolder(short *vRefNum, long *prefDirID);
  45. OSErr sys6Create(const FSSpec *spec,OSType creator,OSType fileType);
  46. static void specToHParamBlock(const FSSpec *spec, HParmBlkPtr hpb);
  47. static void zeroMemory(Ptr d,long len);
  48.  
  49. #endif